#include"golf.h"

void setgolf(golf&g,const char*name,int hc)
{
    int len = strlen(name);
    for ( int i = 0; i < len; i++)
    g.fullname[i] = name[i];
    g.handicap = hc;
}

int setgolf(golf&g)
{
    if ( !strcmp(g.fullname," "))
    return 0;
    else
    return 1;
}

void handicap(golf&g,int hc)
{
    g.handicap = hc;
}

void showgolf(const golf& g)
{
    int len = strlen(g.fullname);
    cout << "The golf fullname is:" << endl;
    for ( int i = 0; i < len; i++)
    cout << g.fullname[i] << endl;
    cout <<  "The golf handicap is:" << endl;
    cout << g.handicap << endl;
}